FirmwareUpdate Application Description

The FirmwareUpdate application saves the new firwmare received via NFC using the ST FTM protocol and saves it on the right flash region and works with the SimpleBootLoader example for enabling the Firmware Update capability.

The package supports battery operated use cases.

This firmware package includes Components Device Drivers, Board Support Package and example application for the following STMicroelectronics elements:

The example application allows the user to control the initialization phase via UART.

Launch a terminal application and set the UART port to 9600 bps, 8 bit, No Parity, 1 stop bit. For having the same UART functionality on STEVAL-SMARTAG1 board, is necessary to recompile the code uncomment the line

//#define SMARTAG_ENABLE_PRINTF

on file:

Projects\STM32L4P5CE-SmarTag2\Applications\FirmwareUpdate\Inc\Firmware_conf.h

Very Important

  1. The firmware updated is done using the ST25 Android/iOS application (Version 3.7.0 and above)

  2. This example must run starting at address 0x08002000 in memory and works ONLY if the SimpleBootLoader is saved at the beginning of the FLASH (address 0x08000000)

  3. For each IDE (IAR/µVision/STM32CubeIDE) there are some scripts .bat/.sh that makes the following operations:

    • Full Flash Erase
    • Load the SimpleBootLoader on the rigth flash region
    • Load the Program (after the compilation) on the rigth flash region
    • Dump back one single binary that contain SimpleBootLoader+Program that could be flashed at the flash beginning (address 0x08000000)
    • Reset the board

Keywords

NFC, SPI, I2C, UART

Hardware and Software environment

ADDITIONAL_COMP : ST25DV64KC

Dependencies

STM32Cube packages:

STEVAL-SMARTAG1:

How to use it?

This package contains projects for 3 IDEs viz. IAR, Keil µVision 5 and Integrated Development Environment for STM32. In order to make the program work, you must do the following:

For IAR:

For Keil µVision 5:

For Integrated Development Environment for STM32:

Author

SRA Application Team

License

Copyright (c) 2023 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.